package day13;

import java.lang.reflect.Field;

/**
 * @author joker
 * @date 2022/4/24 0024 - 0:24
 */
public class Test03 {
    public static void main(String[] args) throws Exception {
        Class<Person> personClass = Person.class;
        Field[] declaredFields = personClass.getDeclaredFields();
        for (Field declaredField : declaredFields) {
            declaredField.setAccessible(true);
            System.out.println(declaredField.get(new Person()));
        }
    }
}
